//============================================================================
// Name        : HelloWorld_OpenCV.cpp
// Author      : Salvador Zengar
// Version     :
// Copyright   : ZENGAR Coorp
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
#include "opencv2/highgui/highgui.hpp"
//#include "iostream"

using namespace cv;
using namespace std;

/* Compile with
g++ -I"C:\opencv\build\include" -L"C:\opencv\build\x86\mingw\lib" loadimg.cpp -lopencv_core246 -lopencv_highgui246 -o loadimage
*/

int main(){
	Mat img = imread("lena.png", CV_LOAD_IMAGE_COLOR);
	if (img.empty()){
		//cout << "Cannot load image!" << endl;
	return -1;
	}

	namedWindow("image", CV_WINDOW_AUTOSIZE);
	imshow("image", img);
	waitKey(10);
	return 0;
}
/*
int main() {
	cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
	return 0;
}
*/
